package xuanke;

public class student extends people {


public student(String name,int number,String sex,String age) {
	super.main(name,sex,number,age);

}




	public void choose() {
		System.out.println("我没有选课");
	}

	public void choose(String course) {
		System.out.println("选课为：" + course);
	}
	
	public String main() {
		return super.main() + " 学号:" + number;
	}

	public void print() {
		System.out.println(this.main());
	}

	public static void main(String[] args) {
		student s1 = new student("小刚",20210001,"男","18");
		s1.print();
		s1.choose("python");
		student s2 = new student("小晨", 2021002,"女","20");
		s2.print();
		s2.choose("java");
		student s3 = new student("小宋", 2021003,"女","19");
		s3.print();
		s2.choose("java");
	}
}

